package designpattern.singleton;

public class Test {

	public static void main(String[] args) {
		for (int i = 0; i < 1000; i++) {
			new Thread(()->{
				try {
					Thread.sleep(100);
				} catch (Exception e) {
					e.printStackTrace();
				}
//				System.out.println(Singleton1.getInstance());
//				System.out.println(Singleton2.getInstance());
//				System.out.println(Singleton3.getInstance());
//				System.out.println(Singleton4.getInstance());
//				System.out.println(Singleton5.getInstance());
				System.out.println(Singleton6.INSTANCE);
			}).start();
		}

	}

}
